//
//  JYJAnchorDataTableViewCell.m
//  HappyListen
//
//  Created by 冀永金 on 16/9/1.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "JYJAnchorDataTableViewCell.h"
#import "Masonry.h"
#import "JYJTAMacro.h"
@implementation JYJAnchorDataTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self configViews];
    }
    return self;
}
- (void)configViews {
    self.labelOfLeftData = [[BaseLabel alloc]init];
    [self.contentView addSubview:_labelOfLeftData];
    self.labelOfRightData = [[BaseLabel alloc]init];
    [self.contentView addSubview:_labelOfRightData];
    
}
- (void)layoutSubviews {
    [super layoutSubviews];
    [self.labelOfLeftData mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(10);
        make.left.equalTo(self.contentView.mas_left).with.offset(10);
        make.width.mas_equalTo(120);
        make.height.mas_equalTo(45);
    }];
    [self.labelOfRightData mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top).with.offset(10);
        make.left.equalTo(self.labelOfLeftData.mas_right).with.offset(50);
        make.width.mas_equalTo(200);
        make.height.mas_equalTo(45);

    }];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
